import { useRouter } from 'vue-router';
const router = useRouter();

module.exports.defaults = {

  // 路由跳转
  routerGoTo(name: string, params: any) {
    router.push({ name, params });
  },

  // 路由回溯
  routerGoBack() {
    router.go(-1);
  },

  routerGo(step: number) {
    router.go(step);

  }
}


